package cn.edu.scau.cmi.dengzejun.chapter04;
import java.util.*;
public class PrimeNumber {
	public static void main(String agr[]) {
		int x=0,i=3;
		System.out.println(2);
		while (x<=50) {
			boolean flag=true;
			for (int j=i-1;j>=Math.sqrt(i);j--) {
				if (i%j==0) {
					flag=false;
					break;
				}
			}
			if (flag) {
				x++;
				System.out.println(i);
			}
			i+=2;
		}
	}
}
